package com.hqyj.springCloudAccount.service;


import com.github.pagehelper.PageInfo;
import com.hqyj.entity.account.Role;
import com.hqyj.entity.common.ResultEntity;
import com.hqyj.entity.common.SearchBean;

import java.util.List;


public interface RoleService {
    ResultEntity<Role> addRole(Role role);

    ResultEntity<Role> updateRoleByRole(Role role);

    ResultEntity<Role> deleteRoleById(int id);

    Role selectRoleById(int id);

    List<Role> selectAllRole();

    PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);

    List<Role> getRolesByUserId(int userId);

}
